package com.j2eefast.bussiness.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>设备使用记录</p>
 *
 * @author: summer
 * @date: 2021-07-08 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
@Data
@TableName("bus_equipment_record")
public class BusEquipmentRecordsEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    protected Long id;


    //设备名称
    @TableField(value = "equipment_name")
    protected String equipmentName;

    //设备型号
    @TableField(value = "equipment_model")
    protected String equipmentModel;

    //设备编号
    @TableField(value = "equipment_code")
    protected String equipmentCode;
    //使用日期
    @TableField(value = "use_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date useTime;
    //试验时间
    @TableField(value = "experiment_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date experimentTime;


    //仪器使用前
    @TableField(value = "start_status")
    protected int startStatus;
    //仪器使用后
    @TableField(value = "end_status")
    protected int endStatus;
    //使用内容
    @TableField(value = "content")
    protected String content;
    //样品编号
    @TableField(value = "sample_code")
    protected String sampleCode;
    //使用人
    @TableField(value = "uses")
    protected String uses;


    //备注
    @TableField(value = "remark")
    protected String remark;
    //创建日期
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date createTime;
    //更新日期
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date updateTime;
    //创建人
    @TableField(value = "create_by")
    protected String createBy;
    //更新人
    @TableField(value = "update_by")
    protected String updateBy;



    @Override
    public String toString() {
        return super.toString();
    }
}
